﻿using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;

namespace Jet.Dal.Exceptions
{
	/// <summary>
	/// Represents the exceptions encountered during a database update.
	/// </summary>
	[Serializable]
	[ComVisible(true)]
	[ClassInterface(ClassInterfaceType.None)]
	public class DataUpdateException : DataLayerException
	{
		/// <summary>
		/// Initializes a new instance of the DataUpdateException class.
		/// </summary> 
		public DataUpdateException()
		{
			
		}

		/// <summary>
		/// Initializes a new instance of the DataUpdateException class with a specified error message.
		/// </summary>
		public DataUpdateException(string message)
			:base(message)
		{
			
		}

		/// <summary>
		/// Initializes a new instance of the DataUpdateException class with a specified error message and a reference to the inner exception that is the cause of this exception.
		/// </summary>
		public DataUpdateException(string message, Exception innerException)
			:base(message, innerException)
		{
			
		}

		/// <summary>
		/// Initializes a new instance of the DataUpdateException class with serialized data.
		/// </summary>
		protected DataUpdateException(SerializationInfo info, StreamingContext context)
			:base(info, context)
		{
			
		}
	}
}
